package com.sumer.brain.sys.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sumer.brain.common.model.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Schema(name = "SysUser", description = "用户实体")
@TableName(value = "sys_user")
@Data
public class SysUser extends BaseEntity {

    @Schema(description = "用户ID")
    @TableId(type = IdType.AUTO)
    private Long userId;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "电话号码")
    private String phone;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "性别，0未知，1男，2女")
    private Integer gender;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "邮箱地址")
    private String email;

    @Schema(description = "所属部门ID")
    private Long deptId;

    @Schema(description = "锁定标记，0未锁定，1已锁定")
    private Integer lockFlag;

    @Schema(description = "删除标记，0未删除，1已删除")
    @TableLogic
    private Integer delFlag;

    @Schema(description = "微信登录openId")
    private String wxOpenid;

    @Schema(description = "小程序openId")
    private String miniOpenid;

    @Schema(description = "QQ openId")
    private String qqOpenid;

    @Schema(description = "码云标识")
    private String giteeLogin;

    @Schema(description = "开源中国标识")
    private String oscId;

    @Schema(description = "所属租户ID")
    private Long tenantId;

}
